import { http } from '@/utils/http'
import type { PrescriptionResult } from '@/types/patient'

export const getPrescriptionByRegId = (data: { registrationId: number }) => {
  return http<PrescriptionResult>({
    method: 'POST',
    url: '/prescription/searchPrescriptionByRegistrationId',
    data,
  })
}
